<?php
include('includes/basic.php');

$uname=$_POST['uname'];
$password=md5($_POST['password']);
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$mob=$_POST['mob'];


$venid=$_POST['vencontid'];


$update=mysql_query("update user_master set first_name='$fname', last_name='$lname', mobile='$mob',user_name='$uname',user_password='$password' where vendor_id=$venid");

if($update)
	{
		//echo $custname;
		header("location:viewvendor-contact.php?vendorCid=$venid");
	}


?>